package com.ljx.itbbs.server.article.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ljx.itbbs.server.article.domain.entity.CollectRecordEntity;
import com.ljx.itbbs.server.article.domain.vo.req.ArticleCollectReq;

import java.util.List;

public interface CollectRecordService {

    CollectRecordEntity getCollectRecord(String objKey, Long userId);

    void saveCollectRecord(String objKey, Long userId, Integer type);

    List<CollectRecordEntity> getCollectRecordListByUId(Long uid);

    IPage<CollectRecordEntity> getCollectRecordList(ArticleCollectReq req, Long uid);

    void deleteCollectRecord(Long userId, String collectObj);
}
